<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8"/>
	<meta name="baidu-site-verification" content="JdMif0g2tL" />
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
	<title>angular</title>
</head>
<body>

<div ng-app="myApp">
	<header id="header" class="">导航模块</header>
	<div ui-view>内容模块</div>
</div>

<script type="text/javascript">
	document.getElementsByTagName('html')[0].style.fontSize=window.screen.width/10+'px';
</script>
<script src="../js/angular.min.js" charset="utf-8"></script>
<script src="bower_components/angular-ui-router/release/angular-ui-router.min.js"></script>
<script type="text/javascript">
	var app =angular.module('myApp', []);
	angular.module('app').config(['$stateProvider','$urlRouterProvider',function($stateProvider,$urlRouterProvider) {     
			$stateProvider.state('main',{
				url:'/main',         
				templateUrl:'view/main.html',        //
				controller:'mainCtrl'
			}).state('favorite',{
				url:'/favorite',
				templateUrl:'view/favorite.html',
				controller:'favoriteCtrl'
			});  
			$urlRouterProvider.otherwise('main');
		}]);
</script>
</body>
</html>
<!--应该是14.11，时间-2017-05-08->